<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-18 17:26:53
 * @Last Modified time: 2023-02-20 14:43:12
 */
namespace app\common\enum\store\order;

use frank\base\BaseEnum;

/**
 * 枚举类
 * Class RefundTypeEnum
 * @package app\common\enum\store\order
 */
class RefundTypeEnum extends BaseEnum
{
    // 退货退款
    const RETREAT = 1;

    // 换货
    const EXCHANGE = 2;

    // 仅退款
    const REFUND = 3;

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::RETREAT => [
                'name' => '退货退款',
                'value' => self::RETREAT,
            ],
            self::EXCHANGE => [
                'name' => '换货',
                'value' => self::EXCHANGE,
            ],
            self::REFUND => [
                'name' => '仅退款',
                'value' => self::REFUND,
            ],
        ];
    }
}
